#include <stdio.h>


int main(int argc, char *argv[]) {
    // 
    float score[10] = {55, 85, 72, 45, 68, 74, 25, 36, 25, 27}; // 10000
    int num = 10;
    // float score_total = 0.0;

    // for (int i = 0; i < num; i++) {
    //     score_total += score[i];
    //     // printf("current: %f, total: %f\n", score[i], score_total);
    // }
    // printf("avg score: %f\n", score_total / num);

    float max_score = 0;
    for (int i = 0; i < num; i++) {
        if (score[i] > max_score)  {
            max_score = score[i];
            // printf("current score: %f, current_max=%f \n", score[i], max_score);
        } 
        // else {

        // }
        printf("current score: %f, current_max=%f \n", score[i], max_score);
    } // end for

    return 0;
}